package tianrun.ziguan.api.forecast.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tianrun.ziguan.api.forecast.util.ResponseUtil;
import tianrun.ziguan.api.forecast.util.ReturnMessage;

import java.net.MalformedURLException;
import java.net.URISyntaxException;


@RestController
@RequestMapping("/docker")
@Api(tags = "docker")
public class LongTermBaseForecastController {


    @ApiOperation(value = "hello,docker", response = ReturnMessage.class)
    @ApiResponses(@ApiResponse(code = 200, message = "OK"))
    @GetMapping(value = "/hello")
    public ResponseEntity<ReturnMessage> getForeShortData() throws MalformedURLException, URISyntaxException {
        return ResponseUtil.success("hello,docker!!!");
    }

}
